package xyz.caijiwang.mapper;

import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import xyz.caijiwang.entity.Best;

@Mapper
@Repository
public interface BestMapper {
    int deleteByPrimaryKey(Integer bestid);

    int insert(Best record);

    int insertSelective(Best record);

    Best selectByPrimaryKey(Integer bestid);

    int updateByPrimaryKeySelective(Best record);

    int updateByPrimaryKey(Best record);

    int getBestCountWithArticleid(Integer articleid);

    Best checkWeatherIsSelected(Integer userid, Integer articleid);

    void deleteByUserAndArticle(Integer userid, Integer articleid);
}